package com.jrx.anytxn.transaction.bean;

import com.jrx.anytxn.transaction.entity.AmAccountMainInfo;
import com.jrx.anytxn.transaction.entity.TlGlInterfaceInfo;
import com.jrx.anytxn.transaction.entity.TlTransactionInfo;

import java.util.ArrayList;
import java.util.List;

/**
 * 账户及交易信息bean
 *
 * @author : zhenghaopu
 * 2019/11/1
 */
public class CastAccountTransactionBean {
    /**
     * 账户信息
     */
    private AmAccountMainInfo amAccountMainInfo;
    /**
     * 交易信息
     */
    private TlTransactionInfo tlTransactionInfo;
    /**
     * GL流水
     */
    private List<TlGlInterfaceInfo> tlGlInterfaceInfoList = new ArrayList<>();

    public CastAccountTransactionBean(){}

    public CastAccountTransactionBean(AmAccountMainInfo amAccountMainInfo, TlTransactionInfo tlTransactionInfo,List<TlGlInterfaceInfo> tlGlInterfaceInfoList) {
        this.amAccountMainInfo = amAccountMainInfo;
        this.tlTransactionInfo = tlTransactionInfo;
        this.tlGlInterfaceInfoList = tlGlInterfaceInfoList;
    }

    public AmAccountMainInfo getAmAccountMainInfo() {
        return amAccountMainInfo;
    }

    public void setAmAccountMainInfo(AmAccountMainInfo amAccountMainInfo) {
        this.amAccountMainInfo = amAccountMainInfo;
    }

    public TlTransactionInfo getTlTransactionInfo() {
        return tlTransactionInfo;
    }

    public void setTlTransactionInfo(TlTransactionInfo tlTransactionInfo) {
        this.tlTransactionInfo = tlTransactionInfo;
    }

    public List<TlGlInterfaceInfo> getTlGlInterfaceInfoList() {
        return tlGlInterfaceInfoList;
    }

    public void setTlGlInterfaceInfoList(List<TlGlInterfaceInfo> tlGlInterfaceInfoList) {
        this.tlGlInterfaceInfoList = tlGlInterfaceInfoList;
    }

    public void addTlGlInterfaceInfo(TlGlInterfaceInfo tlGlInterfaceInfo){
        if(null != tlGlInterfaceInfo){
            this.tlGlInterfaceInfoList.add(tlGlInterfaceInfo);
        }
    }

}
